package com.sunny.fetch.controller;

import com.sunny.common.pojo.SunResult;
import com.sunny.fetch.service.StockBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockBasicController {
    @Autowired
    private StockBasicService stockBasicService;

    @GetMapping("/stock_basic")
    public SunResult stockBasic(){
        SunResult result = stockBasicService.execute();
        return result;
    }
}
